home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / comm / cbip_kit.zip / BEGUIDE.TXT next >
Internet Message Format  |  1992-02-14  |  12KB

  1. Path: nlbbs!nstar!zaphod.mps.ohio-state.edu!sdd.hp.com!wupost!uunet!ulowell!cs.ulowell.edu!oneill
  2. From: cbip@cs.ulowell.edu (CBIP Moderator)
  3. Newsgroups: comp.binaries.ibm.pc
  4. Subject: v17inf5: bin.man, Beginner's Guide to Binaries (part 01/01)
  5. Keywords: binaries, decode, download
  6. Message-ID: <1992Feb14.193145.27125@ulowell.ulowell.edu>
  7. Date: Fri, 14 Feb 1992 19:31:45 GMT
  8. Sender: usenet@ulowell.ulowell.edu (News manager - ulowell)
  9. Followup-To: comp.binaries.ibm.pc.d
  10. Organization: University of Massachusetts at Lowell Computer Science
  11. Approved: oneill@cs.ulowell.edu
  12. Originator: oneill@cs.ulowell.edu
  13.  
  14. Checksum: 1380554945  (Verify with "brik -cv")
  15. Submitted-by: oneill@cs.ulowell.edu
  16. Posting-number: Volume 17, Issue inf5
  17. Archive-name: admin/bin.man
  18.  
  19. [Note: this will normally always be posted as Issue inf2]
  20.  
  21. [Date of last change 12/26/91 Release 1.3]
  22.  
  23.         HOW TO USE BINARIES SENT VIA NEWS AND E-MAIL
  24.  
  25. (c) Copyright 1991 Brian O'Neill. Permission to distrbute this file freely
  26. is granted, so long as it remains unmodified.
  27.  
  28.    One of the more troubling things to new users is using programs posted to
  29. groups like comp.binaries.ibm.pc. This is in part due to the fact that
  30. different utilties are needed to decode these files into something more
  31. familiar to them. This manual explains how to retrieve binary files posted
  32. to UseNet, and also received by e-mail.
  33.  
  34.    This manual is divided into several sections, each dealing with a
  35. different aspect of what is needed. Here is the basic setup:
  36.  
  37.     I.     Formats and Standards
  38.     II.    Minimum utilities, and how to get them
  39.     III.    Using UNIX to do the work
  40.     IV.    Using MS-DOS to do the work
  41.     V.    Handling archived files
  42.     VI.    Downloading files from UNIX to MSDOS
  43.  
  44.    This manual was written with the new user in mind. If any section is
  45. unclear to you, please respond to me via e-mail. Let me know what section,
  46. paragraph, and what it was that was unclear. My address is below:
  47.  
  48.         Internet: oneill@ulowell.edu
  49.         UUCP: ...!ulowell!oneill
  50.  
  51.               I. FORMATS AND STANDARDS
  52.  
  53.    UseNet, and other networks, user groups, and BBS's, all work on some set
  54. of standards for sharing files between a diverse arangement of systems. For
  55. PC's, the most common standard for files is the archive. This is a binary
  56. file which allows a user to place several files into one, while compressing
  57. them to save space. Several utilities exist for making and extracting files
  58. from archives. The most common are ZOO from Rahul Dhesi, and PKZIP from 
  59. PKWare. The ZOO standard has been adopted for use in the UseNet newsgroup
  60. comp.binaries.ibm.pc for the distribution. Some BBS systems use ZIP, and
  61. others use ARC, another format from System Enhancement Associates which is
  62. slowly becoming obsolete, and is generally avoided due to recent litigation
  63. in court (which I will not discuss here). You will need the appropriate
  64. extraction program for the particular format you are dealing with, which
  65. usually can be told by the extension name on the file (.ZOO, .ZIP, or .ARC).
  66.  
  67.    UseNet and e-mail are based on ASCII text. In other words, they are only
  68. able to transmit ASCII files. In order to transmit binary files, they are
  69. transformed into ASCII files first. This is accomplished using a program
  70. called 'uuencode', another fairly common standard. The file can then be
  71. decoded back into binary form using 'uudecode'. These programs are fairly
  72. common among UNIX systems, and are increasingly available for MS-DOS. Once
  73. again, you will need a version of uudecode to properly handle these files.
  74.  
  75.           II. MINIMUM UTILITIES, AND HOW TO GET THEM
  76.  
  77.    You will need some form of uudecode, either UNIX or MS-DOS, to decode the
  78. binaries. If you do not have it for either of these, you must secure a copy
  79. of the source code. If you have FTP access, you can get MS-DOS source code
  80. from wsmr-simtel20.army.mil (File PD1:<MSDOS.STARTER>UUDECODE.PAS). If not,
  81. you will have to get it from someone else. 
  82.  
  83.    Also, you need an archive extractor. Small extract-only programs are
  84. available, such as BOOZ by Rahul Dhesi. It will be assumed you can secure
  85. one of these without problem, as with uudecode.
  86.  
  87.    Also available is the CBIP Starter's Kit, which contains BASIC and DEBUG
  88. source for uudecode, a uuencoded version of BOOZ (ZOO file extractor), and
  89. instructions on how to make use of these files. This is enough to get you
  90. started in dealing with the comp.binaries.ibm.pc newsgroup on UseNet.
  91.  
  92.           III. USING UNIX TO DO THE WORK
  93.  
  94.    UseNet is a network comprising mostly of UNIX-based machines, so
  95. therefor it is quite common to use the system connected to UseNet to do most
  96. of the work, rather than downloading from that system and doing all the work
  97. on a PC. To do this, you will need the following basic utilities:
  98.  
  99.             uudecode
  100.             editor (vi, emacs, etc.)
  101.             cat (not necessary, but useful)
  102.             combine (Also not necessary, but makes
  103.                  everything easy)
  104.  
  105.    The first thing you must do is use your news reader program to save the
  106. articles to files. If the uuencoded file spans more than one article, save
  107. then to different articles. Check your manual pages for the news reader you
  108. have for details. If you are using 'rn', do the following:
  109.  
  110.    From within the article, or at the end of the article, type 'w
  111. filename'. Answer 'n' to the mailbox format question, and then continue. 's
  112. filename' could also be used, but it saves additional header information
  113. that is not needed, and would have to be edited out anyway.
  114.  
  115.    For one single file, things are easy. Use your favorite editor and delete
  116. all lines before the 'begin' line, and all lines after the 'end' line. Then
  117. you can give the command 'uudecode file', and the new file will be created
  118. for you. Download the new file to your PC.
  119.  
  120.    For multiple files, you must edit each file. For the first file, delete
  121. all lines before the 'begin', and go to the end of the file. A line of
  122. uuencoded text looks like this:
  123.  
  124. M'YV01N2\:0-BSAPV:<Z4D0-B2ATW((+`80AB!@@8.73`F*$Q!X@8.7#@4""E
  125.  
  126.    You then must delete any lines after the last uuencoded line. Then
  127. proceed to the remaining files, deleting all lines before and after the
  128. uuencoded lines. When you come to the last file, delete all lines after the
  129. 'end' line. Save each file after it has been edited.
  130.  
  131.    Now, to decode them, give the following:
  132.  
  133.     cat file1 file2 file3 ... | uudecode
  134.  
  135.    Users of csh can use range specifiers to simplify the typing, such as
  136. if you have a five part file, you can say:
  137.  
  138.         cat file[1-5] | uudecode
  139.  
  140.    This will create a file specified in the begin line. Then you can
  141. download this file to your PC.
  142.  
  143.    Currently, Bill Davidsen, the moderator of comp.binaries.ibm.pc, has made
  144. available a short, two-line script which will take all parts of a program
  145. posted to comp.binaries.ibm.pc, edit, combine, and uudecode them automatically.
  146. Here is the shell script:
  147.  
  148. #! /bin/sh
  149. cat $* | sed '/^END/,/^BEGIN/d' | uudecode
  150.  
  151. Type this in, do a 'chmod 755 combine' to make it executable, and run it
  152. like this:
  153.  
  154.         combine file1 file2 ...
  155.  
  156. You will not have to do any editing at all of the files, as combine will do
  157. this for you. As long as the files are fed in the proper order, all should
  158. be well.
  159.  
  160.                 IV. USING A PC TO DO THE WORK
  161.  
  162.    There are several versions of UUDECODE for MS-DOS available. You need some
  163. version of UUDECODE to proceed. Check the local archives, or the CBIP Starter's
  164. Kit.
  165.  
  166.    After dowloading the files to the PC, edit out unwanted lines in the
  167. file. If using a simple version of UUDECODE, concatenate all the files into
  168. one large file. Then type:
  169.  
  170.         uudecode <filename>
  171.  
  172. You should then end up with the program you went through all the trouble
  173. for.
  174.  
  175.              V. HANDLING ARCHIVE FILES
  176.  
  177.    An archive is simply a file containing several other files. Usually
  178. these other files are compressed in some fashion, in order to save disk
  179. space. These files are used generally for easier handling of several files.
  180. There are many types currently in existence, such as .ARC, .ZOO, and .ZIP.
  181. The instructions below can be used for most any type of archive, using the
  182. appropriate programs.
  183.  
  184.    To extract files from an ZOO file, you must have some sort of extractor.
  185. BOOZ from Rahul Dhesi (to be included in Starter's Kit) is an extract-only
  186. program for dealing with ZOO files. The ZOO program itself (also by Rahul
  187. Dhesi) can be used to both create and extract ZOO archives. To unpack an
  188. entire archive, simply type one of the following:
  189.  
  190.             zoo -extract <archive>
  191.             booz x <archive>
  192.  
  193. This will unpack the entire contents into the current directory. You need
  194. not specify the .ZOO extension. To extract particular files, simply specify
  195. the filename after the archive name.
  196.  
  197.  
  198.              VI. DOWNLOADING FILES FROM UNIX TO MSDOS
  199.  
  200.    To download the files, you will need the following:
  201.  
  202.     1) A file transfer protocol on your UNIX system (i.e. Kermit,
  203.        Xmodem, Zmodem, etc.)
  204.  
  205.     2) A PC communications package that supports the same protocol
  206.  
  207.    Due to the large amount of protocols and communications packages
  208. available, it would be next to impossible to describe all of them. choosing
  209. the proper set up often depends on your situation. Some protocols are much
  210. faster than others, yet cannot be used over some networks. For the purposes
  211. of examples, I will use Kermit as the protocol (specifically C-Kermit), and
  212. ProComm as the communications package, as they are in wide use and very
  213. reliable over most networks. A more generic method for downloading follows
  214. afterwards, but you must read the manuals to all programs to operate them
  215. properly.
  216.  
  217.    First off is to determine what type of file you are downloading, whether
  218. it is binary or ASCII. Usually, if you can read it, it's ASCII. Files with
  219. extensions EXE, COM, and archive files such as ZOO are almost always binary.
  220. On UNIX, you can say:
  221.  
  222.         file <filename>
  223.  
  224. this will usually tell you what type of file it is.
  225.  
  226.    Downloading ASCII text is easy. On UNIX type:
  227.  
  228.         kermit -s <filename>
  229.  
  230. the "-s" puts C-Kermit into "send" mode. You then instruct your terminal
  231. program to receive a Kermit transfer. On ProComm, you would hit PgDn, and
  232. then select Kermit off the menu, selection 2. ProComm will take care of the
  233. rest, and you can watch it's progress. When it's done, ProComm will return
  234. you to UNIX.
  235.  
  236.    Downloading binary files are a little more difficult. If you can dial in
  237. to a UNIX host using 8-bit communications (such as 8-N-1), do so. Sometimes
  238. the Login: prompt may look weird, but once the host knows, it will fix
  239. itself. If you cannot use 8-bit settings (the host insists on 7 bits to be
  240. readable), you may wish to transform the binary file into ASCII, using the
  241. uuencode program, downloading as above for normally ASCII files, and
  242. uudecoding the file on the PC.
  243.  
  244.    If you are able to use 8 bits, on UNIX type:
  245.  
  246.         kermit -is <filename>
  247.  
  248. the "-is" puts C-Kermit into "send, image" mode. Basically, "tell it like it
  249. is". As above, hit PgDn, then 2 and ProComm will do the rest. 
  250.  
  251.    For a more generic explanation of what to do, here is a step-by-step
  252. version of the above, without specifics:
  253.  
  254.     1) Determine what type the file is (ASCII or binary)
  255.  
  256.     2) Initiate transfer on UNIX end. Usually accomplished by executing
  257.     a program and giving the filename of what you wish to download. If
  258.     it is a binary file, specify 'binary' or 'image' mode, usually as a
  259.     switch on the command line.
  260.  
  261.     3) Escape back to the PC, and set for receiving a file using the
  262.     same protocol as being sent with. Often done by hitting some Hot Key
  263.     (usually Pg-Dn), and then specifying the protocol you are using.
  264.  
  265.    You really should read the manuals to any programs you wish to use for
  266. downloading files. Programs change, and they are not all used the same way.
  267. If you can't seem to get a program to work, consult someone using the same
  268. programs, and see what it might be that you do differently.
  269.  
  270.